<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>云校通-教师-<c:choose><c:when test="${examKey == null }">新增考试</c:when><c:otherwise>考试详情</c:otherwise></c:choose></title>
<jsp:include page="/WEB-INF/page/common/_header.jsp"></jsp:include>
<script src="<%=basePath %>/js/picker.js"></script>
<script src="<%=basePath %>/js/select.js"></script>
<body ontouchstart>
	<div class="weui_tab tab-bottom">
		<div class="weui-header bg-blue"> 
	  		<div class="weui-header-left"><a onclick="back()" href="javascript:;" class="icon icon-109 f-white">返回</a></div>
	    	<h1 class="weui-header-title">课程详情</h1>
	    </div>
	    <div class="weui_tab_bd">
	    	<c:if test="${detail.attachList != null}">
	    		<div class="weui-weixin-img" style="margin-bottom: -10px;"><!--图片开始-->
			    	<img src="${config.imgUrl }${detail.mainImg }" class="weixin">
			    </div>
	    	</c:if>
		    <div class="weui_cells mt0">
			    <div class="weui_cell">
			        <div class="weui_cell_bd weui_cell_primary">${detail.courseName }</div>
			        <c:if test="${detail.limitNum != null }">
			        	<div class="weui_cell_ft">${detail.studentSignCount}/${detail.limitNum }</div>
			        </c:if>
			    </div>
			    <div class="weui_cells_title">授课老师: ${detail.classTeacher }</div>
			    <div class="weui_cells_title">上课地点: ${detail.classAddr }</div>
			    <c:if test="${detail.rainAddr != null }">
			   		<div class="weui_cells_title">备用地点: ${detail.rainAddr }</div>
				</c:if>
			</div>
		    <div class="weui-weixin-content p10" style="padding-bottom: 20px;">
		        <p>${detail.courseDesc }</p>
		        <c:forEach var="itm" items="${detail.attachList }">
		        	<p><img src="${config.imgUrl }${itm.attachmentUrl }" class="weixin"></p>
		        </c:forEach>
		    </div>
		    <a href="javascript:;" class="footer_btn hide">立即报名</a>
		 </div>
	</div>
</body>
<script type="text/javascript">
	var nt = queryStringByName("nt");
	if(!(nt != null && nt == 'query')) {
		$(".footer_btn").show();
	}
</script>
</html>